<%@page import="com.netistate.pojo.Demo"%>
<%@page import="com.netistate.pojo.Product"%>
<%@page import="com.netistate.pojo.ClientContact"%>
<%@page import="com.netistate.pojo.UserProject"%>
<%@page import="com.netistate.pojo.User"%>
<%@page import="com.netistate.pojo.Project"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<div class="minWin">
   	<form id="myForm" action="#" method="post">
		<table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="bg_color_common" style="font-size: 12">
			<%  Project p = (Project)request.getSession().getAttribute("showPDproject");
				Set<Product> productList = (Set<Product>)p.getProductList();
				if(productList.size() == 0){%>
			<tr style="color:#CB5013">
				<td title="项目产品信息" align="right">项目产品信息:
				</td>
				<td>
					无产品信息
				</td>
			</tr>
				<%}else{%>
			<tr style="color:#CB5013">
				<td title="产品名称及型号" align="center">产品名称及型号</td>
				<td title="产品IP" align="center">产品IP</td>
				<td title="产品硬件配置" align="center">产品硬件配置</td>
			</tr>
				<%for(Product pp : productList){ %>
			<tr style="color:#CB5013">
				<td title="<%=pp.getProduct() %>" align="center"><%=pp.getProduct() %></td>
				<td title="<%=pp.getIp() %>" align="center"><%=pp.getIp() %></td>
				<td title="<%=pp.getProductConfig()%>" align="center"><%=pp.getProduct() %></td>
			</tr>
				<%} }
				Set<Demo> demoList = (Set<Demo>)p.getDemoSet();
				if(demoList.size() == 0){%>
			<tr style="color:#2063E2" >
				<td title="项目Demo信息" align="right">项目Demo信息:
				</td>
				<td>
					无Demo信息
				</td>
			</tr>
				<%}else{%>
			<tr style="color:#2063E2">
				<td title="Demo序列号" align="center">Demo序列号</td>
				<td title="Demo所在处" align="center">Demo所在处</td>
				<td title="Demo模块" align="center">Demo模块</td>
				<td title="Demo状态" align="center">Demo状态</td>
			</tr>
				<%for(Demo d : demoList){ %>
			<tr style="color:#2063E2">
				<td title="<%=d.getSeqNo() %>" align="center"><%=d.getSeqNo() %></td>
				<td title="<%=d.getDemoAddress() %>" align="center"><%=d.getDemoAddress() %></td>
				<td title="<%=d.getModule() %>" align="center"><%=d.getModule() %></td>
				<td title="<%=d.getState() %>" align="center"><%=d.getState() %></td>
			</tr>
				<%} }%>
		</table>
	</form>
</div>
